package com.cxm.report.model.data;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author scl.BlueOcean
 * @version 1.0
 * @date 2018年09月26 14:12
 * @description
 */
@Data
public class TrendReport {
    private List<String> categories = new ArrayList<>();

    private List<TrendData> datas = new ArrayList<>();

    public TrendReport addData(TrendData data){
        this.datas.add(data);
        return this;
    }
    @Data
    public  class TrendData{
        private String name;
        private String type= "line";
        private List<Object> data = new ArrayList<>();

        public TrendData(String name) {
            this.name = name;
        }
    }

}
